<?php
$aviso = "";
$login = "";

if(isset($_POST["aviso"]) || !empty($_POST["aviso"])){
	$aviso = $_POST["aviso"];
}

if(isset($_POST["login"]) || !empty($_POST["login"])){
	$login = $_POST["login"];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
		<title>SRSystem Login</title>
		<LINK rel="shortcut icon" href="layout/favicon.ico"/>
		<link href="css/jquery-formlabels.css" rel="stylesheet" type="text/css" />
		<SCRIPT language="javascript" type="text/javascript" src="js/jquery/jquery-1.4.4.min.js"></SCRIPT>
		<SCRIPT language="javascript" type="text/javascript" src="js/jquery/jquery-ui-1.8.10.custom.min.js"></SCRIPT>
		<script language="javascript" type="text/javascript" src="js/jquery/jquery-formlabels.js"></script>
		<style type="text/css">
			input{
				-webkit-border-radius: 15px;
				-moz-border-radius: 15px;
				border-radius: 15px;
			}
		</style>
		<script type="text/javascript">
			$(function(){
				$.fn.formLabels({
					excludeElts: 'input[name=login]',
					excludeElts: 'input[name=password]'
				});
				
				$('#login-input').focus();
			});
		</script>
    </head>
    <body>
		<br/><br/><br/><br/><br/><br/><br/>
        <div id="cont" class="group">
			<form method="post" action="autenticar.php" id="login">
				<h1>SRSystem Login</h1>
				<div class="field">
					<label style="font:bold 13px Verdana; ">&nbsp;Usu&aacute;rio</label><br/>
					<input type="text" name="login" id="login-input" value="<?echo $login?>"/>
				</div>
				<div class="field">
					<label style="font:bold 13px Verdana; ">&nbsp;Senha</label><br/>
					<input type="password" name="password" id="password-input" />
				</div>
				<div style="padding: 15px 0 20px 0;text-align:center;color:red;">
					<label style="font:bold 13px Verdana; "><?echo $aviso?></label>
				</div>
				<div class="submit"><button type="submit">Entrar &gt;</button></div>
			</form>
		</div>
    </body>
</html>